﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class HPSlider : MonoBehaviour {
	public GameObject taget;
	public Slider hpSlider;
	public Canvas canvas;



	// Use this for initialization
	void Start () {
	}
	
	// Update is called once per frame
	void Update () {
		canvas.transform.up = Vector3.up;
		if (!string.Equals (gameObject.name, EnemyPlane.Type_BigEnemyPlane+"(Clone)")) {
			canvas.transform.position = transform.position + new Vector3 (0, 2, 0);
		} else 
		{
			canvas.transform.position = transform.position + new Vector3 (0, 3.5f, 0);
		}
//		hpSlider.transform.up = Vector3.up;
	}
}
